<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<div th:include="fragment::headDiv"></div>
<div th:replace="fragment::headDiv"></div>
<div th:insert="fragment::headDiv"></div>
<!--    获取域中的数据在页面中展示  -->
<h4>获取域中数据展示</h4>
<div th:text="${k1}"></div>
<div th:text="${k2.msg+k2.code}"></div>
<div th:text="${session.k4}"></div>
<h4>字符串拼接</h4>
<div th:text="${'msg:'+k2.msg+' code:'+k2.code}"></div>
<div th:text="|msg:${k2.msg} code:${k2.code}|"></div>

</body>
</html>